<me:UIABPOS x:Class="WPFExcelReport.TNAV04"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:DR="clr-namespace:WPFExcelReport;assembly=TDRAUFTR" 
                     xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIABPOS.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby1440  x:Key="day"/>
        <ucd:Divideby480  x:Key="shift"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIABPOS.Resources>
    <WrapPanel>
        <TextBlock Text="{Binding Source={Localization:Translate Word=创建分批}}"/>
        <Button  Grid.Column="1" Click="NewCommand" Visibility="{Binding IsNew,ElementName=TV,Converter={StaticResource nbv}}"
                 Width="16" Height="16" HorizontalAlignment="Left" 
                  >
            <Button.Background>
                <ImageBrush  ImageSource="/ImagePackage;component/Images/Add.png" />
            </Button.Background>
        </Button>
        <WrapPanel >
            <ex:NumericBox Text="{Binding QTY,ElementName=TV}" Name="txtQ" Width="60" FontSize="18" />
            <Button  Grid.Column="1" Click="NewCommand" Visibility="{Binding IsNew,ElementName=TV,Converter={StaticResource bv}}"
                 Width="16" Height="16" HorizontalAlignment="Left" 
                  >
                <Button.Background>
                    <ImageBrush  ImageSource="/ImagePackage;component/Images/button_ok.png" />
                </Button.Background>
            </Button>

        </WrapPanel>
        <Grid Margin="10,0,0,0" VerticalAlignment="Top">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <DR:TDRAUFTR  Grid.Column="0" Name="cDR" DocType="JLTAB05BTP"
                                  Visibility="Collapsed" PrintType="OpenExcel" />
            <Button  Grid.Column="1"   Click="PrintCommand" Height="20" Margin="5,0,0,0" Width="Auto" 
                             Content="{Binding Source={Localization:Translate Word=打印标签}}" />
        </Grid>
        <WrapPanel >
            <TextBlock Margin="10,0,0,0" Text="{Binding Source={Localization:Translate Word=补打批号}}" FontSize="16"/>
            <ex:TXT72 Width="60" MaxLength="4" PRE="0000" FontSize="18" Text="{Binding PC,ElementName=TV}" />    
        </WrapPanel>
        <Grid Margin="10,0,0,0" VerticalAlignment="Top">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <DR:TDRAUFTR  Grid.Column="0" Name="cDR1" DocType="JLTAB05BTP"
                                  Visibility="Collapsed" PrintType="OpenExcel" />
            <Button  Grid.Column="1"   Click="PrintCom" Height="20" Margin="5,0,0,0" Width="Auto" 
                             Content="{Binding Source={Localization:Translate Word=补打标签}}" />
        </Grid>
        <Grid Margin="10,0,0,0" VerticalAlignment="Top">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <DR:TDRAUFTR  Grid.Column="0" Name="cDR2" DocType="JLTAB05NWBCARD"
                                  Visibility="Collapsed" PrintType="OpenExcel" />
            <Button  Grid.Column="1"   Click="PrintAFrameCard" Height="20" Margin="5,0,0,0" Width="Auto" 
                             Content="{Binding Source={Localization:Translate Word=布车卡}}" />
        </Grid>
    </WrapPanel>
</me:UIABPOS> 
 
